#!/bin/bash
tar xf libtool-2.4.6.tar.xz 
cd libtool-2.4.6
./configure --prefix=$1/usr --host=$4
sed -ie "s/O2/O$3/g" Makefile
make -j$2
make install
cd ..
rm -rf libtool-2.4.6

